﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RegisterUser.aspx.cs" Inherits="RegisterUser.RegisterUser" %>

<!DOCTYPE html>

<html>
<head runat="server">
    <link href="RegisterUser-Styles.css" rel="stylesheet" type="text/css" />
    <title>Register User</title>
</head>
<body>
    <form id="formRegister" runat="server">   
     
        <label>UserName:
            <asp:TextBox ID="TextBoxUserName" runat="server" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidatorUserName" runat="server" 
            ErrorMessage="Please enter a UserName" Text="*" ForeColor="Red"
            ControlToValidate="TextBoxUserName"/>
        </label>
        
        <label>Password:<asp:TextBox ID="TextBoxPass" runat="server" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidatorPassword" runat="server" 
            ErrorMessage="Please enter a password" Text="*" ForeColor="Red"
            ControlToValidate="TextBoxPass"/>
        </label>

        <label>Repeat Password:<asp:TextBox ID="TextBoxRptPass" runat="server" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidatorRptPassword" runat="server" 
            ErrorMessage="Please repeat the password" Text="*" ForeColor="Red"
            ControlToValidate="TextBoxRptPass"/>
            <asp:CompareValidator ID="CompareValidatorPassword" runat="server" 
            ControlToValidate="TextBoxRptPass" ControlToCompare="TextBoxPass" 
            Text="*" ForeColor="Red" ErrorMessage="The password should be the same."
            />
            
        </label>

        <label>First Name:<asp:TextBox ID="TextBoxFirstName" runat="server" /></label>
        <label>Last Name:<asp:TextBox ID="TextBoxLastName" runat="server" /></label>
        <label>e-mail:<asp:TextBox ID="TextBoxEmail" runat="server" /></label>
        <label>Age:<asp:TextBox ID="TextBoxAge" runat="server" /></label>    
        <asp:CheckBox Text="I Accept" runat="server" />
        <asp:Button id="ButtonSubmit" Text="Register" runat="server" onclick="ButtonSubmit_Click"/>
        <asp:Literal ID="literalValidationResult" Text=" " runat="server" />
        <asp:ValidationSummary runat="server" />
    </form>
</body>
</html>
